package cn.aitstone;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;

/**
 * @Description: 启动类
 * @Author: Sheldon
 * @Version: 1.0
 * @Date:  2022/7/27 21:53
 */
@SpringBootApplication
@EnableEurekaClient
public class OrderStarterApp {
    public static void main(String[] args) {
        SpringApplication.run(OrderStarterApp.class, args);
    }

    @Bean
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
